﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using InsuranceCompany.Helpers;

using InsuranceCompany.Categories;
using InsuranceCompany.Client;

//using InsuranceCompany.Core;
//using InsuranceCompany.Core.Domain;
using ClientNS = InsuranceCompany.Core.Domain.Client;


namespace InsuranceCompany
{
    public partial class Main : InsuranceForm
    {
        public Main() : base()
        {
            InitializeComponent();
        }

        private void PolicesCatsClick(object sender, EventArgs e)
        {
            List<ObjectsCollection> objects = this.Objects;
            PolicyCategories policies = new PolicyCategories(ref objects);
            this.Hide();
            policies.ShowDialog();
            this.Objects = objects;
            this.Show();
        }

        private void ClientsShowClick(object sender, EventArgs e)
        {
            List<ObjectsCollection> objects = this.Objects;
            Clients clientForm = new Clients(ref objects);            
            this.Hide();
            clientForm.ShowDialog();
            this.Objects = objects;
            this.Show();
        }


    }
}
